package com.jboltai.capability.text;

import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject;

public class ContentInfo {

    /**
     * 内容类型
     */
    ContentType type;

    /**
     * 文本
     */
    String text;

    PDImageXObject image;

    /**
     * 文本x坐标
     */
    float x;

    /**
     * 文本y坐标
     */
    float y;


    public ContentInfo(ContentType type, String text, float x, float y) {
        this.type = type;
        this.text = text;
        this.x = x;
        this.y = y;
    }
    public ContentInfo(ContentType type, PDImageXObject image, float x, float y) {
        this.type = type;
        this.image = image;
        this.x = x;
        this.y = y;
    }

    public ContentType getType() {
        return type;
    }

    public String getText() {
        return text;
    }

    public float getX() {
        return x;
    }

    public float getY() {
        return y;
    }

    public PDImageXObject getImage() {
        return image;
    }
}
